package com.test.thread;

import java.io.PipedInputStream;

public class ThreadRead extends Thread {
	private ReadData r;
	private PipedInputStream in;
	
	public ThreadRead(ReadData r, PipedInputStream in) {
		super();
		this.r = r;
		this.in = in;
	}

	@Override
	public void run() {
		r.readMethod(in);
	}
	
	
}
